#ifndef JSONFILE_H
#define JSONFILE_H

#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QFile>
#include <QString>
#include <QVector>

class JsonFile
{
public:
    JsonFile();
    ~JsonFile();
//    bool setJsonFilePath(QString path);

    bool creatJsonFile(const QString fileName, const QVector<QVector<QPointF> > &vec);

    bool readJsonFromFile(const QString fileName, QJsonObject& obj);
private:
//    QFile* mFile;
};

#endif // JSONFILE_H
